package com.example.design_patterns.factory_pattern;


public class test {

    public static void main(String[] args) {
        ShapeFactory shapeFactory = new ShapeFactory();
        Shape shape = shapeFactory.getShape("circle");
        shape.draw();
        System.out.println("---------------------------------------------------------");
        shape = shapeFactory.getShape("square");
        shape.draw();
        shape = shapeFactory.getShape(null);

    }
}
